﻿//  --------------------------------
//  Copyright (c) PK Logix LLC. All rights reserved.
//  This source code is made available under the terms of the GNU General Public License version 2 (GPLv2)
//  http://www.codeplex.com/mvcclubsite/license
//  ---------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using MVCClubSite.Web;
using System.Configuration;
using MVCClubSite.Web.Configuration;

namespace MVCClubSite.Web.Controllers
{
    public class BaseController : Controller
    {
        public BaseController()
        {
            Config = ConfigurationManager.GetSection("MVCClubSite") as MVCClubSiteConfiguration;
            ViewData["SiteTitle"] = Config.SiteTitle;
            ViewData["SiteSubTitle"] = Config.SiteSubTitle;
        }

        public MVCClubSiteConfiguration Config { get; protected set; }
        
    }


}
